package cb.wzby;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

/**
 * @author wzby
 * @Date: 2022/7/30 15:20
 */
public class Set7 {
    public static void main(String[] args) {
        //Set HashSet 双色球
        Set<Set<Integer>> s = new HashSet<>();
        Random rand = new Random();
        Set<Integer> red = new HashSet<>(6);
        while (red.size() != 6 ){
            red.add(rand.nextInt(1,34));
        }
        System.out.println(red);


        Set<Integer> blue = new HashSet<>();
        blue.add(rand.nextInt(1,14));
        s.add(red);
        s.add(blue);
        System.out.println(s);
    }
}
